<?php
	require_once("db_connect.php");
	require_once("safeFunctions.php");
	function whichPage() {
		if(!isset($_GET["site"])) {
			$whichPage = "STARTSIDA";
		}else{
			switch($_GET["site"]) {
				case "admin":
					$whichPage = "ADMIN";
					break;
				case "start":
					$whichPage = "STARTSIDA";
					break;
				case "myclass":
					$whichPage = "MIN KLASS";
					break;
				case "courses":
					$whichPage = "KURSER";
					break;
				case "news":
					$whichPage = "NYHETER";
					break;
				case "calender":
					$whichPage = "KALENDER";
					break;
				case "messages":
					$whichPage = "MEDDELANDEN";
					break;
				case "results":
					$whichPage = "STUDIERESULTAT";
					break;
				case "surveys":
					$whichPage = "ENKÄTER";
					break;
				default:
					$whichPage = "STARTSIDA";
			}
		}
		
		return safety($whichPage);
	}
?>